package OOday01.HomeWork;

/**
 * @description: TODO
 * @author yumo
 * @version: 1.0
 * @date 2025/3/6 19:47
 */
public class ExtendsTest {
    public static void main(String[] args) {
        Student aa=new Student("1","李虎",1223,23);
        aa.study();
        int age=aa.age;
        System.out.println(age);
        aa.eat();


        Teacher th=new Teacher("刘能",18,"找个",18383);
        th.Teach();
        th.eat();


        Doctor dc=new Doctor("尼古拉",23,"天下第一");
        dc.cut();
        dc.eat();
    }
}
